package ModelLayer;

import java.util.ArrayList;

/**
 * 
 * @author DM79 group 5
 * @version 2012.13.12
 */

public class Employee extends Person {
	//instance variables
	private String idEmployee;
	private String cpr;
	private double hourlyWage;
	private String bankAccountNo;
	private ArrayList<Employee> employeeList;
	
	//constructors
	public Employee() {		
	}	
	
    public Employee(String name,String address,String zipCode,String city,String phoneNo,String email,String idEmployee,String cpr,double hourlyWage,String bankAccountNo) {
		super(name, address, zipCode, city, phoneNo, email);
		this.idEmployee = idEmployee;
		this.cpr = cpr;
		this.hourlyWage = hourlyWage;
		this.bankAccountNo = bankAccountNo;
		/**
		 * creates ArrayList containing objects of type Employee
		 */
		employeeList = new ArrayList<Employee>();
	}

    /**
     * getters
     */	

	/**
	 * @return the idEmployee
	 */
	public String getIdEmployee() {
		return idEmployee;
	}

	/**
	 * @return the cpr
	 */
	public String getCpr() {
		return cpr;
	}

	/**
	 * @return the hourlyWage
	 */
	public double getHourlyWage() {
		return hourlyWage;
	}

	/**
	 * @return the bankAccountNo
	 */
	public String getBankAccountNo() {
		return bankAccountNo;
	}

	/**
	 * @return the employeeList
	 */
	public ArrayList<Employee> getEmployeeList() {
		return employeeList;
	}

	/**
	 * setters
	 */
	
	/**
	 * @param idEmployee the idEmployee to set
	 */
	public void setIdEmployee(String idEmployee) {
		this.idEmployee = idEmployee;
	}
	
	/**
	 * @param cpr the cpr to set
	 */
	public void setCpr(String cpr) {
		this.cpr = cpr;
	}

	/**
	 * @param hourlyWage the hourlyWage to set
	 */
	public void setHourlyWage(double hourlyWage) {
		this.hourlyWage = hourlyWage;
	}

	/**
	 * @param bankAccountNo the bankAccountNo to set
	 */
	public void setBankAccountNo(String bankAccountNo) {
		this.bankAccountNo = bankAccountNo;
	}

	/**
	 * @param employeeList the employeeList to set
	 */
	public void setEmployeeList(ArrayList<Employee> employeeList) {
		this.employeeList = employeeList;
	}
}
